package services;

import dao.ClassifyDao;
import entity.ClassifyInfo;

import java.sql.SQLException;
import java.util.List;

public class ClassifyServices {
    public static void showClassify() throws SQLException {
       List<ClassifyInfo> classifyInfoList = ClassifyDao.select();
       for (ClassifyInfo classifyInfo:classifyInfoList){
           System.out.println("------------------------------------");
           System.out.println("分类ID: "+classifyInfo.getClassifyId()+" 分类名称: "+classifyInfo.getClassifyName());
       }
        System.out.println("------------------------------------");
    }
}
